package unclevenn.cloudmusic.service.imp;

import com.github.pagehelper.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import unclevenn.cloudmusic.mapper.MusicMapper;
import unclevenn.cloudmusic.model.Music;
import unclevenn.cloudmusic.service.MusicService;

import java.util.List;
import java.util.Map;

@Service
public class MusicServiceImp implements MusicService {
    @Autowired
    private MusicMapper musicMapper;

    @Override
    public Page<Music> getMusicList() {
        return musicMapper.getMusicList();
    }

    @Override
    public Music getMusicById(Long id) {
        return musicMapper.getMusicById(id);
    }
}
